def check(a):
    n=len(a)
    max=a[0]
    min=a[0]


    for i in range(0,n):
        if(a[i]>=max):
            max=a[i]
        if(a[i]<=min):
            min=a[i]

    
    print(f"min={min}\nmax={max}")

a=[12,34,56]
check(a)